/*
 * Creation : 25/09/2013
 */
/**
 * 
 */
package com.test.japcatalog.util.hibernate;

import junit.framework.TestCase;

import org.hibernate.SessionFactory;
import org.junit.Test;

import com.japcatalog.util.HibernateUtil;

/**
 * The Class HibernateUtilTestCase.
 * 
 * @author Fernando Ariel Perelli
 */
public class HibernateUtilTestCase extends TestCase {

	/**
	 * Test method for {@link com.japcatalog.util.HibernateUtil#getIntance()}.
	 */
	@Test
	public final void testGetIntance() {
		HibernateUtil hibernateUtil = HibernateUtil.getIntance();
		assertNotNull(hibernateUtil);
	}

	/**
	 * Test method for.
	 * 
	 * {@link com.japcatalog.util.HibernateUtil#getSessionFactory()}.
	 */
	@Test
	public final void testGetSessionFactory() {
		SessionFactory sessionFactory = HibernateUtil.getIntance().getSessionFactory();
		assertNotNull(sessionFactory);
	}

}
